import * as TYPES from '../action-tpes'
import api from "../../api";
const userAction = {
    // 获取用户信息
    async getUserInfo(){
        let info = null
        try {
            // const {code , data} = await api.queryUserInfo()
            // if(+code === 0){
            //     info = data
            // }
            info = {name:'冯彦祖'}

        }catch (_){}
        return {
            type:TYPES.USER_INFO,
            info
        }
    },
    // 清除用户信息
    clearUserInfo(){
        return {
            type:TYPES.USER_INFO,
            info : null
        }
    }
}


export default userAction
